StupidBeauty
Read times:431Posted at:Fri Feb 3 05:45:02 2012
- no title specified

转载: JavaScript Essence: 取得視窗維度資訊

浏览器窗口中用来显示网页的区域的宽度和高度可使用window.innerWidth和window.innerHeight取得,某些版本的IE例外。

http://caterpillar.onlyfun.net/Gossip/JavaScript/WindowDimension.html

亮点:

在遵守標準的瀏覽器上,以下相關的資訊都可以在 window 物件上取得:

  • •. screenX screenY :瀏覽器視窗在螢幕中的位置

  • •. outerWidth outerHeight :瀏覽器視窗寬、高

  • •. innerWidth innerHeight :顯示視埠區域寬高(不包括選單、工具列、捲軸)

  • •. pageXOffset pageYOffset :水平、垂直捲軸位置

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4